/*
 * @Author: 张勇 1179276268@qq.com
 * @Date: 2024-01-05 11:08:37
 * @LastEditors: 张勇 1179276268@qq.com
 * @LastEditTime: 2024-01-05 11:09:28
 * @FilePath: \project-template\src\utils\auth.ts
 * @Description: 操作token
 */
import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token: string) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
